package Leetcode.string;

import java.util.Scanner;

public class ReverseString {
       public String reverseString(String s) {
           if (s == null || s.length() == 0) {
               return "";
           }

           StringBuffer sb = new StringBuffer();
           sb.append(s);
           sb = sb.reverse();

           return sb.toString();
       }

        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String str = sc.nextLine();
            // System.out.println(str);
            ReverseString rs =new ReverseString();
            System.out.print( rs.reverseString(str));
        }

}

